package net.openvision.music.composition;

import java.util.HashSet;

import net.openvision.music.composition.rules.LocalRule;

public class LocalRuleSet extends HashSet<LocalRule> implements LocalRule {

	@Override
	public double evaluate(Element previous, Element next) {
		double result = 0;
		for (LocalRule rule:this) {
			result += rule.evaluate(previous, next);
		}
		return result;
	}

}
